import request from '../utils/request';
//审批店主申请
export const opApply = query => {
    return request({
        url: '/opApply',
        method: 'post',
        data: query
    });
};
//设置美团参数
export const setMtKey = query => {
    return request({
        url: '/setMtKey',
        method: 'post',
        data: query
    });
};
//提现比例
export const setShopWithdrawalScale = query => {
    return request({
        url: '/setShopWithdrawalScale',
        method: 'post',
        data: query
    });
};
//经营统计
export const homeShopData = query => {
    return request({
        url: '/homeShopData',
        method: 'post',
        data: query
    });
};
//申请列表
export const apply = query => {
    return request({
        url: '/applyList',
        method: 'post',
        data: query
    });
};
//删除消息
export const delMessage = query => {
    return request({
        url: '/delMessage',
        method: 'post',
        data: query
    });
};
//创建消息
export const createMessage = query => {
    return request({
        url: '/createMessage',
        method: 'post',
        data: query
    });
};
//消息列表
export const getMessageList = query => {
    return request({
        url: '/getMessageList',
        method: 'post',
        data: query
    });
};
//获取配置
export const getConfigList = query => {
    return request({
        url: '/getConfigList',
        method: 'post',
        data: query
    });
};
//修改配置
export const changeConfig = query => {
    return request({
        url: '/changeConfig',
        method: 'post',
        data: query
    });
};
//创建后台用户
export const addAdminUser = query => {
    return request({
        url: '/addAdminUser',
        method: 'post',
        data: query
    });
};
//用户组列表
export const groupList = query => {
    return request({
        url: '/groupList',
        method: 'post',
        data: query
    });
};
//删除后台用户
export const delAdminUser = query => {
    return request({
        url: '/delAdminUser',
        method: 'post',
        data: query
    });
};
//后台用户列表
export const adminUserList = query => {
    return request({
        url: '/adminUserList',
        method: 'post',
        data: query
    });
};
//后台登录接口
export const loginAdmin = query => {
    return request({
        url: '/loginAdmin',
        method: 'post',
        data: query
    });
};
//商家列表
export const shopList = query => {
    return request({
        url: '/shopList',
        method: 'post',
        data: query
    });
};
//后台订单列表
export const getAdminOrderList = query => {
    return request({
        url: '/getAdminOrderList',
        method: 'post',
        data: query
    });
}
//商家店铺列表
export const getMyShop = query => {
    return request({
        url: '/getMyShop',
        method: 'post',
        data: query
    });
}
//商家订单列表
export const shopOrderList = query => {
    return request({
        url: '/shopOrderList',
        method: 'post',
        data: query
    });
}
//用户交易明细
export const getAdminUserTranDetails = query => {
    return request({
        url: '/getAdminUserTranDetails',
        method: 'post',
        data: query
    });
}
//优惠券明细
export const getAdminUserCouponDetails = query => {
    return request({
        url: '/getAdminUserCouponDetails',
        method: 'post',
        data: query
    });
}
//用户列表
export const getWxUserList = query => {
    return request({
        url: '/getWxUserList',
        method: 'post',
        data: query
    });
}
//用户详情
export const getAdminUserData = query => {
    return request({
        url: '/getAdminUserData',
        method: 'post',
        data: query
    });
}
//获取首页统计数据
export const getHomePageData = query => {
    return request({
        url: '/getHomePageData',
        method: 'post',
        data: query
    });
}
//商家详情页面
export const shopInfo = query => {
    return request({
        url: '/shopInfo',
        method: 'post',
        data: query
    });
}
//添加
export const createEquipmeng = query => {
    return request({
        url: '/createEquipmeng',
        method: 'post',
        data: query
    });
}
//设备关联商家
export const LinkShop = query => {
    return request({
        url: '/LinkShop',
        method: 'post',
        data: query
    });
}
//后台设备列表
export const getAllEqList = query => {
    return request({
        url: '/getAllEqList',
        method: 'post',
        data: query
    });
}
//后台提现列表
export const getWithdrawalList = query => {
    return request({
        url: '/getWithdrawalList',
        method: 'post',
        data: query
    });
}

//后台操作提现列表
export const opWithDrawal = query => {
    return request({
        url: '/opWithDrawal',
        method: 'post',
        data: query
    });
}

